package com.syaccp.request;


import com.syaccp.annotation.StringContains;
import com.syaccp.constants.Constants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel(value = "CustomerBillSelectRequest",description = "查询客户消费记录时传递过来的条件")
@Data
public class CustomerDetailSelectRequest {

    @ApiModelProperty(value = "页码", example= Constants.DEFAULT_PAGE + "")
    private int page = Constants.DEFAULT_PAGE;





    @ApiModelProperty(value = "每页数量", example = Constants.DEFAULT_LIMIT + "")
    private int limit = Constants.DEFAULT_LIMIT;

    @ApiModelProperty(value = "客户id")
    @NotNull(message = "客户id不能为空")
    private Integer id;


    @ApiModelProperty(value = "客户id")
    @NotNull(message="查询的数据表不能为空")
    @StringContains(limitValues = { "0", "1","2" }, message = "未知的菜单类型")
    private String type;
}
